```toml
[package]
name = "hello_world"
-version = "0.0.1"
+version = "0.1.0"
authors = ["Your Name <you@example.com>"]
```
<pre><code class="language-shell"><span class="gp">$</span> cargo build
<span style="font-weight: bold"
-class="s1"> Compiling</span> hello_world v0.0.1 (file:///path/to/project/hello_world)</code></pre>
+class="s1"> Compiling</span> hello_world v0.1.0 (file:///path/to/project/hello_world)</code></pre>
And then run it:
<pre><code class="language-shell"><span class="gp">$</span> cargo run
<span style="font-weight: bold"
-class="s1"> Fresh</span> hello_world v0.0.1 (file:///path/to/project/hello_world)
+class="s1"> Fresh</span> hello_world v0.1.0 (file:///path/to/project/hello_world)
<span style="font-weight: bold"
class="s1"> Running</span> `target/debug/hello_world`
Hello, world!</code></pre>
<pre><code class="language-shell"><span class="gp">$</span> cargo build --release
<span style="font-weight: bold"
-class="s1"> Compiling</span> hello_world v0.0.1 (file:///path/to/project/hello_world)</code></pre>
+class="s1"> Compiling</span> hello_world v0.1.0 (file:///path/to/project/hello_world)</code></pre>
## Adding a dependency
To build, just use `cargo build`:
<pre><code class="language-shell"><span class="gp">$</span> cargo build
-<span style="font-weight: bold" class="s1"> Compiling</span> color v0.0.1 (file:///path/to/project/color-rs)</code></pre>
+<span style="font-weight: bold" class="s1"> Compiling</span> color v0.1.0 (file:///path/to/project/color-rs)</code></pre>
This will fetch all of the dependencies and then build them, along with the
project.
```toml
[package]
name = "hello_world"
-version = "0.0.1"
+version = "0.1.0"
authors = ["Your Name <you@example.com>"]
[dependencies.color]
Compile it:
<pre><code class="language-shell"><span class="gp">$</span> cargo run
-<span style="font-weight: bold" class="s1"> Compiling</span> color v0.0.1 (https://github.com/bjz/color-rs.git#bf739419)
-<span style="font-weight: bold" class="s1"> Compiling</span> hello_world v0.0.1 (file:///path/to/project/hello_world)
+<span style="font-weight: bold" class="s1"> Compiling</span> color v0.1.0 (https://github.com/bjz/color-rs.git#bf739419)
+<span style="font-weight: bold" class="s1"> Compiling</span> hello_world v0.1.0 (file:///path/to/project/hello_world)
<span style="font-weight: bold" class="s1"> Running</span> `target/hello_world`
Converting RGB to HSV!
HSV: HSV { h: 0, s: 1, v: 1 }</code></pre>
```toml
[root]
name = "hello_world"
-version = "0.0.1"
+version = "0.1.0"
dependencies = [
- "color 0.0.1 (git+https://github.com/bjz/color-rs.git#bf739419e2d31050615c1ba1a395b474269a4b98)",
+ "color 0.1.0 (git+https://github.com/bjz/color-rs.git#bf739419e2d31050615c1ba1a395b474269a4b98)",
]
[[package]]
name = "color"
-version = "0.0.1"
+version = "0.1.0"
source = "git+https://github.com/bjz/color-rs.git#bf739419e2d31050615c1ba1a395b474269a4b98"
```
```toml
[package]
name = "hello_world"
-version = "0.0.1"
+version = "0.1.0"
authors = ["Your Name <you@example.com>"]
[dependencies.color]
```toml
[package]
name = "hello_world"
-version = "0.0.1"
+version = "0.1.0"
authors = ["Your Name <you@example.com>"]
[dependencies.color]
```toml
[root]
name = "hello_world"
-version = "0.0.1"
+version = "0.1.0"
dependencies = [
- "color 0.0.1 (git+https://github.com/bjz/color-rs.git#bf739419e2d31050615c1ba1a395b474269a4b98)",
+ "color 0.1.0 (git+https://github.com/bjz/color-rs.git#bf739419e2d31050615c1ba1a395b474269a4b98)",
]
[[package]]
name = "color"
-version = "0.0.1"
+version = "0.1.0"
source = "git+https://github.com/bjz/color-rs.git#bf739419e2d31050615c1ba1a395b474269a4b98"
```
```toml
[package]
name = "conduit-static"
-version = "0.0.1"
+version = "0.1.0"
authors = ["Yehuda Katz <wycats@example.com>"]
[dependencies.conduit]
<pre><code class="language-shell"><span class="gp">$</span> cargo test
<span style="font-weight: bold"
-class="s1"> Compiling</span> color v0.0.1 (https://github.com/bjz/color-rs.git#bf739419)
+class="s1"> Compiling</span> color v0.1.0 (https://github.com/bjz/color-rs.git#bf739419)
<span style="font-weight: bold"
-class="s1"> Compiling</span> hello_world v0.0.1 (file:///path/to/project/hello_world)
+class="s1"> Compiling</span> hello_world v0.1.0 (file:///path/to/project/hello_world)
<span style="font-weight: bold"
class="s1"> Running</span> target/test/hello_world-9c2b65bbb79eabce
```toml
[package]
name = "hello_world"
-version = "0.0.1"
+version = "0.1.0"
authors = ["Your Name <you@example.com>"]
```
<pre><code class="language-shell">$ cargo build
<span style="font-weight: bold"
-class="s1"> Compiling</span> hello_world v0.0.1 (file:///path/to/project/hello_world)</code></pre>
+class="s1"> Compiling</span> hello_world v0.1.0 (file:///path/to/project/hello_world)</code></pre>
And then run it:
<pre><code class="language-shell">$ cargo run
<span style="font-weight: bold"
-class="s1"> Fresh</span> hello_world v0.0.1 (file:///path/to/project/hello_world)
+class="s1"> Fresh</span> hello_world v0.1.0 (file:///path/to/project/hello_world)
<span style="font-weight: bold"
class="s1"> Running</span> `target/hello_world`
Hello, world!</code></pre>